﻿using System.Data;
using Microsoft.Data.SqlClient;
using NiuX.Common.Tests.Dapper.Visitors;
using NiuX.Dapper.Abstractions;
using NiuX.Dapper.Quotes;
using NiuX.Dapper.Repositories;

namespace NiuX.Dapper.SqlServer;

public class SqlServerDataProviderFactory : IDataProviderFactory
{
    public IDbConnection GetConnection(string connectionString) => new SqlConnection(connectionString);


    public ISqlQuote GetSqlQuote() => SqlServerQuote.Instance;
    
    public DatabaseType DatabaseType => DatabaseType.SqlServer;
}